/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wetest;

import binh.CCommon;
import we.dispatcher.packet.CSentPacket;
import we.dispatcher.writer.StrLenWriteProc;

/**
 *
 * @author ADMIN
 */
public class LoginSentPacket extends CSentPacket{
    public String user = "trucvv";
    public String pass = "21";
    
    public LoginSentPacket() {
        super(CCommon.MT_LOGIN);        
    }
    
    @Override
    public void processData() {
        addPair(new StrLenWriteProc(CCommon.MAX_USERNAME_LENGTH), user);
        addPair(new StrLenWriteProc(CCommon.MAX_SESSION_LENGTH), pass);
        processAuto();
    }
    
}
